<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>自定义数据转换</title>
</head>
<body>
<div id="resp">
</div>
<input type="button" onclick="req();" value="请求"/>

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
    function req() {
        $.ajax({
            url: "getDemoObj",
            data: "1-lijiewei",
            type: "POST",
            contentType: "application/x-wisely",
            success: function (data) {
                $("#resp").html(data);
            }
        });

    }
</script>
</body>
</html>
